<?php
// 	$dbHost = 'localhost';
// 	$dbUser = '';
// 	$dbPass = '';
// 	$dbName = 'yemekhane_v1';
// 	$db = NULL;
	function connect(){
		// $db = new mysqli('localhost', 'root', '', 'yemekhane_v1');
		$db = new mysqli('gevezecafe.com', 'geveze', 'gb2TJ8#C;8oa', 'gevezecafe');
		if($db->connect_errno > 0){
			die('Unable to connect to database [' . $db->connect_error . ']');
		}
// 		$db->query("SET NAMES 'latin5' COLLATE 'utf8_turkish_ci'");
		$db->query("SET CHARACTER SET utf8");
// 		$db->query("SET COLLATION_CONNECTION = 'utf8_turkish_ci'");
		return $db;
	}
	
	function disconnect($db){
		if($db != null){
			$db->close();
		}
	}
?>